﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace YetAnotherChat.TcpServer
{
    /// <summary>
    /// Interface for a service to listen to an IPAddress and a port async 
    /// to provide a connection when it arrives
    /// </summary>
    public interface IConnectionListener
    {
        void Start();
        void Stop();
        int Port { get; set; }
        IPAddress ListenAddress { get; set; }
        void OnConnectionArrive(object connection);
    }
}
